package com.kara.dao;

import java.util.List;

import org.appfuse.dao.GenericDao;
import org.appfuse.model.User;
import org.springframework.transaction.annotation.Transactional;

import com.kara.entity.Clazz;
import com.kara.entity.SchoolYear;
import com.kara.entity.Trinn;


public interface ClazzDao extends GenericDao<Clazz, Long> {

    
	/**
     * Gets a list of users ordered by the uppercase version of their username.
     *
     * @return List populated list of users
     */
    List<User> getTeachers();

    
    User getMainTeacher();
    
    /**
     * Saves a user's information.
     * @param user the object to be saved
     * @return the persisted User object
     */
    Clazz saveClazz(Clazz clazz);

    /**
     * Retrieves the password in DB for a user
     * @param username the user's username
     * @return the password in DB, if the user is already persisted
     */
    @Transactional
    List <Clazz> getClazz(Trinn trinn);


    List<Clazz>  getClazz(SchoolYear schoolYear);
    
}